package com.gouqi.mall.mapper;

import com.gouqi.mall.domain.Suggestion;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SuggeationMapper {

    Integer addSuggestion(Suggestion suggestion);
    List<Suggestion> getAllSuggestions(@Param(value = "startIndex")Integer startIndex, @Param(value = "perPage")Integer perPage);
    Integer countSuggestions();
}
